package o;

import com.huawei.appgallery.jsonkit.api.annotation.FieldSecurity;
import com.huawei.appgallery.jsonkit.api.annotation.SecurityLevel;
import com.huawei.hms.framework.network.restclient.hwhttp.dns.DnsConfig;

public class cvt extends BaseRequest {
    public static final String ENCRYPT_API2 = "clientApi";
    public static final String STORE_API2 = "clientApi";
    private static final String TAG = "BaseRequestBean";
    public static final String TLS_API = "clientApi";
    private static long apsid_;
    private boolean blockIfProtocolNotAgreed = true;
    private String clientPackage_ = null;
    private String cno_ = null;
    private String code_ = null;
    private int deviceIdType_;
    @FieldSecurity(security = SecurityLevel.PRIVACY)
    private String deviceId_;
    private int gradeLevel_;
    private String gradeType_ = "";
    private boolean isSerial = false;
    private String locale_ = null;
    private boolean needSign = true;
    private String net_ = null;
    private int recommendSwitch_;
    private int serviceType_ = ccz.ॱ();
    private long sid_;
    private boolean signReseted = false;
    private String sign_ = null;
    private String source_ = null;
    private String thirdId_ = null;
    private String ts_ = null;

    public cvt() {
        setStoreApi("clientApi");
        this.sign_ = HcridSession.ˋ().ˏ(this.serviceType_);
        setClientPackage_(ContentManager.getInstant().getContext().getPackageName());
        setGradeInfo();
        setSid_(cfx.ˊ());
        setRecommendSwitch_(ceo.ˎ().ॱ());
    }

    public static long getApsid_() {
        return apsid_;
    }

    public static void setApsid_(long j) {
        apsid_ = j;
    }

    public boolean isNeedRecallFront() {
        return true;
    }

    private void setGradeInfo() {
        egv ॱᐝ = egv.ॱᐝ();
        if (ॱᐝ != null && ॱᐝ.ॱˋ()) {
            String ʿ = ॱᐝ.ʿ();
            if (!dof.ˋ(ʿ) && ʿ.split("\\|").length == 3) {
                try {
                    String str = ʿ.split("\\|")[1];
                    ʿ = ʿ.split("\\|")[2];
                    this.gradeLevel_ = Integer.parseInt(str);
                    this.gradeType_ = ʿ;
                } catch (NumberFormatException e) {
                    cvp.ˎ.ˏ(TAG, "setGradeInfo NumberFormatException!");
                }
            }
        }
    }

    protected void onSetValue() {
        setTs_(String.valueOf(System.currentTimeMillis()));
        setNet_(String.valueOf(doo.ˏ(ContentManager.getInstant().getContext())));
        setThirdId_(epr.ˎ().ˏ());
        setCno_(epl.ॱ().ˋ());
        setCode_(epl.ॱ().ˎ());
        o.cvu.RequestStrategy ॱ = new bjy(ContentManager.getInstant().getContext()).ॱ();
        setDeviceId_(ॱ.ˎ);
        setDeviceIdType_(ॱ.ॱ);
    }

    public String getDeviceId_() {
        return this.deviceId_;
    }

    public void setDeviceId_(String str) {
        this.deviceId_ = str;
    }

    public int getDeviceIdType_() {
        return this.deviceIdType_;
    }

    public void setDeviceIdType_(int i) {
        this.deviceIdType_ = i;
    }

    public String getSign() {
        return getSign_();
    }

    public void setSign(String str) {
        setSign_(str);
    }

    public String toString() {
        return new StringBuilder(DnsConfig.MAX_CACHE_ENTRIES).append(getClass().getName()).append(" {\n\tcacheID: ").append(getCacheID()).append("\n\tmethod_: ").append(getMethod_()).append("\n\tnet_: ").append(getNet_()).append("\n\trequestType: ").append(getRequestType()).append("\n}").toString();
    }

    public String getSign_() {
        return this.sign_;
    }

    public void setSign_(String str) {
        this.signReseted = true;
        this.sign_ = str;
    }

    public String getSource_() {
        return this.source_;
    }

    public void setSource_(String str) {
        this.source_ = str;
    }

    public int getServiceType_() {
        return this.serviceType_;
    }

    public void setServiceType_(int i) {
        if (!this.signReseted && dgm.ˋ(i)) {
            setSign_(HcridSession.ˋ().ˏ(i));
        }
        this.serviceType_ = i;
    }

    public String getClientPackage_() {
        return this.clientPackage_;
    }

    public void setClientPackage_(String str) {
        this.clientPackage_ = str;
    }

    public String getNet_() {
        return this.net_;
    }

    public void setNet_(String str) {
        this.net_ = str;
    }

    public String getCno_() {
        return this.cno_;
    }

    public void setCno_(String str) {
        this.cno_ = str;
    }

    public String getTs_() {
        return this.ts_;
    }

    public void setTs_(String str) {
        this.ts_ = str;
    }

    public String getCode_() {
        return this.code_;
    }

    public void setCode_(String str) {
        this.code_ = str;
    }

    public String getThirdId_() {
        return this.thirdId_;
    }

    public void setThirdId_(String str) {
        this.thirdId_ = str;
    }

    public boolean isSerial() {
        return this.isSerial;
    }

    public void setSerial(boolean z) {
        this.isSerial = z;
    }

    public String getLocale_() {
        return this.locale_;
    }

    public void setLocale_(String str) {
        this.locale_ = str;
    }

    public String getGradeType_() {
        return this.gradeType_;
    }

    public void setGradeType_(String str) {
        this.gradeType_ = str;
    }

    public int getGradeLevel_() {
        return this.gradeLevel_;
    }

    public void setGradeLevel_(int i) {
        this.gradeLevel_ = i;
    }

    private void setSid_(long j) {
        this.sid_ = j;
    }

    public boolean isBlockIfProtocolNotAgreed() {
        return this.blockIfProtocolNotAgreed;
    }

    public void setBlockIfProtocolNotAgreed(boolean z) {
        this.blockIfProtocolNotAgreed = z;
    }

    public int getRecommendSwitch_() {
        return this.recommendSwitch_;
    }

    public void setRecommendSwitch_(int i) {
        this.recommendSwitch_ = i;
    }

    public boolean isNeedSign() {
        return this.needSign;
    }

    public void setNeedSign(boolean z) {
        this.needSign = z;
    }
}
